<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: coap_dtls.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('coap__dtls_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">coap_dtls.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="net_8h_source.html">net.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="coap__session_8h_source.html">coap_session.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="pdu_8h_source.html">pdu.h</a>&quot;</code><br />
</div>
<p><a href="coap__dtls_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__tls__version__t.html">coap_tls_version_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure used for returning the underlying (D)TLS library information.  <a href="structcoap__tls__version__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__pki__key__pem__t.html">coap_pki_key_pem_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure that holds the PKI PEM definitions.  <a href="structcoap__pki__key__pem__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__pki__key__asn1__t.html">coap_pki_key_asn1_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure that holds the PKI ASN.1 (DER) definitions.  <a href="structcoap__pki__key__asn1__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__dtls__key__t.html">coap_dtls_key_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure that holds the PKI key information.  <a href="structcoap__dtls__key__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcoap__dtls__pki__t.html">coap_dtls_pki_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure used for defining the PKI setup data to be used.  <a href="structcoap__dtls__pki__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga33b0ad5584a64154547b37edf956e91e" id="r_ga33b0ad5584a64154547b37edf956e91e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga33b0ad5584a64154547b37edf956e91e">COAP_TLS_LIBRARY_NOTLS</a>&#160;&#160;&#160;0</td></tr>
<tr class="memdesc:ga33b0ad5584a64154547b37edf956e91e"><td class="mdescLeft">&#160;</td><td class="mdescRight">No DTLS library.  <br /></td></tr>
<tr class="separator:ga33b0ad5584a64154547b37edf956e91e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad96392a988877a91c8d1576191e34cff" id="r_gad96392a988877a91c8d1576191e34cff"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gad96392a988877a91c8d1576191e34cff">COAP_TLS_LIBRARY_TINYDTLS</a>&#160;&#160;&#160;1</td></tr>
<tr class="memdesc:gad96392a988877a91c8d1576191e34cff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Using TinyDTLS library.  <br /></td></tr>
<tr class="separator:gad96392a988877a91c8d1576191e34cff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6de1714f227765ef908b1ab865f77f18" id="r_ga6de1714f227765ef908b1ab865f77f18"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga6de1714f227765ef908b1ab865f77f18">COAP_TLS_LIBRARY_OPENSSL</a>&#160;&#160;&#160;2</td></tr>
<tr class="memdesc:ga6de1714f227765ef908b1ab865f77f18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Using OpenSSL library.  <br /></td></tr>
<tr class="separator:ga6de1714f227765ef908b1ab865f77f18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad4e2243a1ce012460f9687058da32be2" id="r_gad4e2243a1ce012460f9687058da32be2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gad4e2243a1ce012460f9687058da32be2">COAP_TLS_LIBRARY_GNUTLS</a>&#160;&#160;&#160;3</td></tr>
<tr class="memdesc:gad4e2243a1ce012460f9687058da32be2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Using GnuTLS library.  <br /></td></tr>
<tr class="separator:gad4e2243a1ce012460f9687058da32be2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6494be4b6aa3c5d86232cb5ba19fef83" id="r_ga6494be4b6aa3c5d86232cb5ba19fef83"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga6494be4b6aa3c5d86232cb5ba19fef83">COAP_DTLS_PKI_SETUP_VERSION</a>&#160;&#160;&#160;1</td></tr>
<tr class="memdesc:ga6494be4b6aa3c5d86232cb5ba19fef83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Latest PKI setup version.  <br /></td></tr>
<tr class="separator:ga6494be4b6aa3c5d86232cb5ba19fef83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga5fd863493d989e394eb535cf140e99bd" id="r_ga5fd863493d989e394eb535cf140e99bd"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcoap__tls__version__t.html">coap_tls_version_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga5fd863493d989e394eb535cf140e99bd">coap_tls_version_t</a></td></tr>
<tr class="memdesc:ga5fd863493d989e394eb535cf140e99bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure used for returning the underlying (D)TLS library information.  <br /></td></tr>
<tr class="separator:ga5fd863493d989e394eb535cf140e99bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac823bdeb357bded215ac1f84dd47f38f" id="r_gac823bdeb357bded215ac1f84dd47f38f"><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gac823bdeb357bded215ac1f84dd47f38f">coap_dtls_security_setup_t</a>) (void *tls_session, struct <a class="el" href="structcoap__dtls__pki__t.html">coap_dtls_pki_t</a> *setup_data)</td></tr>
<tr class="memdesc:gac823bdeb357bded215ac1f84dd47f38f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Additional Security setup handler that can be set up by <a class="el" href="net_8c.html#a3e6893a08fe41f0ad6fbb84f14b10c36" title="Set the context&#39;s default PKI information for a server.">coap_context_set_pki()</a>.  <br /></td></tr>
<tr class="separator:gac823bdeb357bded215ac1f84dd47f38f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadcb9ad4ab157cf64b6bb31b5f426e5dc" id="r_gadcb9ad4ab157cf64b6bb31b5f426e5dc"><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gadcb9ad4ab157cf64b6bb31b5f426e5dc">coap_dtls_cn_callback_t</a>) (const char *cn, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *asn1_public_cert, size_t asn1_length, <a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, unsigned depth, int validated, void *arg)</td></tr>
<tr class="memdesc:gadcb9ad4ab157cf64b6bb31b5f426e5dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">CN Validation call-back that can be set up by <a class="el" href="net_8c.html#a3e6893a08fe41f0ad6fbb84f14b10c36" title="Set the context&#39;s default PKI information for a server.">coap_context_set_pki()</a>.  <br /></td></tr>
<tr class="separator:gadcb9ad4ab157cf64b6bb31b5f426e5dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae8c91b6496601cfd7e32dc4175e27697" id="r_gae8c91b6496601cfd7e32dc4175e27697"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__dtls.html#gacf1b8685e693c4c5fafe2d4d207c2069">coap_asn1_privatekey_type_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gae8c91b6496601cfd7e32dc4175e27697">coap_asn1_privatekey_type_t</a></td></tr>
<tr class="memdesc:gae8c91b6496601cfd7e32dc4175e27697"><td class="mdescLeft">&#160;</td><td class="mdescRight">The enum used for determining the provided PKI ASN.1 (DER) Private Key formats.  <br /></td></tr>
<tr class="separator:gae8c91b6496601cfd7e32dc4175e27697"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaec79178abc54e775811a60bf7c632502" id="r_gaec79178abc54e775811a60bf7c632502"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__dtls.html#ga8b3c5ffa695a8bfa575319a39517f980">coap_pki_key_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gaec79178abc54e775811a60bf7c632502">coap_pki_key_t</a></td></tr>
<tr class="memdesc:gaec79178abc54e775811a60bf7c632502"><td class="mdescLeft">&#160;</td><td class="mdescRight">The enum used for determining the PKI key formats.  <br /></td></tr>
<tr class="separator:gaec79178abc54e775811a60bf7c632502"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6f6ed6c11432825b9ff054d8790be48e" id="r_ga6f6ed6c11432825b9ff054d8790be48e"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcoap__pki__key__pem__t.html">coap_pki_key_pem_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga6f6ed6c11432825b9ff054d8790be48e">coap_pki_key_pem_t</a></td></tr>
<tr class="memdesc:ga6f6ed6c11432825b9ff054d8790be48e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure that holds the PKI PEM definitions.  <br /></td></tr>
<tr class="separator:ga6f6ed6c11432825b9ff054d8790be48e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf4184bd801dd9757921b3f41a678434" id="r_gabf4184bd801dd9757921b3f41a678434"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcoap__pki__key__asn1__t.html">coap_pki_key_asn1_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gabf4184bd801dd9757921b3f41a678434">coap_pki_key_asn1_t</a></td></tr>
<tr class="memdesc:gabf4184bd801dd9757921b3f41a678434"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure that holds the PKI ASN.1 (DER) definitions.  <br /></td></tr>
<tr class="separator:gabf4184bd801dd9757921b3f41a678434"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3be52f412f8fb22b96521fb10e6b100c" id="r_ga3be52f412f8fb22b96521fb10e6b100c"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcoap__dtls__key__t.html">coap_dtls_key_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga3be52f412f8fb22b96521fb10e6b100c">coap_dtls_key_t</a></td></tr>
<tr class="memdesc:ga3be52f412f8fb22b96521fb10e6b100c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure that holds the PKI key information.  <br /></td></tr>
<tr class="separator:ga3be52f412f8fb22b96521fb10e6b100c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad7c1c23e78398067ad9eb8bd70333735" id="r_gad7c1c23e78398067ad9eb8bd70333735"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structcoap__dtls__key__t.html">coap_dtls_key_t</a> *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gad7c1c23e78398067ad9eb8bd70333735">coap_dtls_sni_callback_t</a>) (const char *sni, void *arg)</td></tr>
<tr class="memdesc:gad7c1c23e78398067ad9eb8bd70333735"><td class="mdescLeft">&#160;</td><td class="mdescRight">Server Name Indication (SNI) Validation call-back that can be set up by <a class="el" href="net_8c.html#a3e6893a08fe41f0ad6fbb84f14b10c36" title="Set the context&#39;s default PKI information for a server.">coap_context_set_pki()</a>.  <br /></td></tr>
<tr class="separator:gad7c1c23e78398067ad9eb8bd70333735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeaa1394cdb4d4f1e522a751c17b7bb32" id="r_gaeaa1394cdb4d4f1e522a751c17b7bb32"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcoap__dtls__pki__t.html">coap_dtls_pki_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gaeaa1394cdb4d4f1e522a751c17b7bb32">coap_dtls_pki_t</a></td></tr>
<tr class="memdesc:gaeaa1394cdb4d4f1e522a751c17b7bb32"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure used for defining the PKI setup data to be used.  <br /></td></tr>
<tr class="separator:gaeaa1394cdb4d4f1e522a751c17b7bb32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga84329159ac3b58cfc9a3bb7004d73231" id="r_ga84329159ac3b58cfc9a3bb7004d73231"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__dtls__internal.html#ga4dbea8aa6943bcf865990b5cebb6bfa4">coap_dtls_role_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga84329159ac3b58cfc9a3bb7004d73231">coap_dtls_role_t</a></td></tr>
<tr class="separator:ga84329159ac3b58cfc9a3bb7004d73231"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gacf1b8685e693c4c5fafe2d4d207c2069" id="r_gacf1b8685e693c4c5fafe2d4d207c2069"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#gacf1b8685e693c4c5fafe2d4d207c2069">coap_asn1_privatekey_type_t</a> { <br />
&#160;&#160;<a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a0d8b252581daca277bbc4aa490a6cc01">COAP_ASN1_PKEY_NONE</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a815f6139ef4796dc825afc72871b1425">COAP_ASN1_PKEY_RSA</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a190dcef2ec78de18ce08555d285c40b7">COAP_ASN1_PKEY_RSA2</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a195328aaae1102658ebf3a9bd6d8c027">COAP_ASN1_PKEY_DSA</a>
, <br />
&#160;&#160;<a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a888108396b26f167f26e8a293e7c44e7">COAP_ASN1_PKEY_DSA1</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a5d86ada626fc1b778eabec59952bec4d">COAP_ASN1_PKEY_DSA2</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069ac6a7ddf9cabc5273bb9a69de5e6971be">COAP_ASN1_PKEY_DSA3</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a4d2b14a573ffb6194d1ba2789e831de2">COAP_ASN1_PKEY_DSA4</a>
, <br />
&#160;&#160;<a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a05caf595fe597cf31b86e61e4dc21fe5">COAP_ASN1_PKEY_DH</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a32fec5facd159d2c9ca9d00cd9fb904a">COAP_ASN1_PKEY_DHX</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069abeca018329efa3c03150aac3ba058c33">COAP_ASN1_PKEY_EC</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069ae0e54b44eb5c901d76ddca601e46bda0">COAP_ASN1_PKEY_HMAC</a>
, <br />
&#160;&#160;<a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069ae170f1e0d7ec889322b1589b2a9f9923">COAP_ASN1_PKEY_CMAC</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a17174dc07690f17fc0fd223c76bb25dc">COAP_ASN1_PKEY_TLS1_PRF</a>
, <a class="el" href="group__dtls.html#ggacf1b8685e693c4c5fafe2d4d207c2069a8f0d588891e977c023bcf6de079dc893">COAP_ASN1_PKEY_HKDF</a>
<br />
 }</td></tr>
<tr class="memdesc:gacf1b8685e693c4c5fafe2d4d207c2069"><td class="mdescLeft">&#160;</td><td class="mdescRight">The enum used for determining the provided PKI ASN.1 (DER) Private Key formats.  <a href="group__dtls.html#gacf1b8685e693c4c5fafe2d4d207c2069">More...</a><br /></td></tr>
<tr class="separator:gacf1b8685e693c4c5fafe2d4d207c2069"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8b3c5ffa695a8bfa575319a39517f980" id="r_ga8b3c5ffa695a8bfa575319a39517f980"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga8b3c5ffa695a8bfa575319a39517f980">coap_pki_key_t</a> { <a class="el" href="group__dtls.html#gga8b3c5ffa695a8bfa575319a39517f980a5685869e9efbf03fe4d05120ff810aef">COAP_PKI_KEY_PEM</a> = 0
, <a class="el" href="group__dtls.html#gga8b3c5ffa695a8bfa575319a39517f980ad1bd86830b59058a381a07865bddd3b7">COAP_PKI_KEY_ASN1</a>
 }</td></tr>
<tr class="memdesc:ga8b3c5ffa695a8bfa575319a39517f980"><td class="mdescLeft">&#160;</td><td class="mdescRight">The enum used for determining the PKI key formats.  <a href="group__dtls.html#ga8b3c5ffa695a8bfa575319a39517f980">More...</a><br /></td></tr>
<tr class="separator:ga8b3c5ffa695a8bfa575319a39517f980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4dbea8aa6943bcf865990b5cebb6bfa4" id="r_ga4dbea8aa6943bcf865990b5cebb6bfa4"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga4dbea8aa6943bcf865990b5cebb6bfa4">coap_dtls_role_t</a> { <a class="el" href="group__dtls__internal.html#gga4dbea8aa6943bcf865990b5cebb6bfa4a7f8045717b35f240ee46c987a8d9ce26">COAP_DTLS_ROLE_CLIENT</a>
, <a class="el" href="group__dtls__internal.html#gga4dbea8aa6943bcf865990b5cebb6bfa4a07db1c396fbda1115124a22b3b9cb4da">COAP_DTLS_ROLE_SERVER</a>
 }</td></tr>
<tr class="separator:ga4dbea8aa6943bcf865990b5cebb6bfa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga9def28dc6da3b77c14e89d63769ec085" id="r_ga9def28dc6da3b77c14e89d63769ec085"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga9def28dc6da3b77c14e89d63769ec085">coap_dtls_is_supported</a> (void)</td></tr>
<tr class="memdesc:ga9def28dc6da3b77c14e89d63769ec085"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether DTLS is available.  <br /></td></tr>
<tr class="separator:ga9def28dc6da3b77c14e89d63769ec085"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga55b3b545f0784c7a6135021017317e1b" id="r_ga55b3b545f0784c7a6135021017317e1b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga55b3b545f0784c7a6135021017317e1b">coap_tls_is_supported</a> (void)</td></tr>
<tr class="memdesc:ga55b3b545f0784c7a6135021017317e1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether TLS is available.  <br /></td></tr>
<tr class="separator:ga55b3b545f0784c7a6135021017317e1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga30c05cbcf1ca5320ff0349b59f8c7fcb" id="r_ga30c05cbcf1ca5320ff0349b59f8c7fcb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcoap__tls__version__t.html">coap_tls_version_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls.html#ga30c05cbcf1ca5320ff0349b59f8c7fcb">coap_get_tls_library_version</a> (void)</td></tr>
<tr class="memdesc:ga30c05cbcf1ca5320ff0349b59f8c7fcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determine the type and version of the underlying (D)TLS library.  <br /></td></tr>
<tr class="separator:ga30c05cbcf1ca5320ff0349b59f8c7fcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga18105ccd6f93d25fdeb8ce1a8791543f" id="r_ga18105ccd6f93d25fdeb8ce1a8791543f"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga18105ccd6f93d25fdeb8ce1a8791543f">coap_dtls_new_context</a> (struct <a class="el" href="structcoap__context__t.html">coap_context_t</a> *coap_context)</td></tr>
<tr class="memdesc:ga18105ccd6f93d25fdeb8ce1a8791543f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new DTLS context for the given <code>coap_context</code>.  <br /></td></tr>
<tr class="separator:ga18105ccd6f93d25fdeb8ce1a8791543f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b350a528900b867dcf0c604239b1512" id="r_ga6b350a528900b867dcf0c604239b1512"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga6b350a528900b867dcf0c604239b1512">coap_dtls_context_set_psk</a> (struct <a class="el" href="structcoap__context__t.html">coap_context_t</a> *coap_context, const char *identity_hint, <a class="el" href="group__dtls__internal.html#ga4dbea8aa6943bcf865990b5cebb6bfa4">coap_dtls_role_t</a> role)</td></tr>
<tr class="memdesc:ga6b350a528900b867dcf0c604239b1512"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the DTLS context's default PSK information.  <br /></td></tr>
<tr class="separator:ga6b350a528900b867dcf0c604239b1512"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae916047df669849d71470609242f32cc" id="r_gae916047df669849d71470609242f32cc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#gae916047df669849d71470609242f32cc">coap_dtls_context_set_pki</a> (struct <a class="el" href="structcoap__context__t.html">coap_context_t</a> *coap_context, <a class="el" href="structcoap__dtls__pki__t.html">coap_dtls_pki_t</a> *setup_data, <a class="el" href="group__dtls__internal.html#ga4dbea8aa6943bcf865990b5cebb6bfa4">coap_dtls_role_t</a> role)</td></tr>
<tr class="memdesc:gae916047df669849d71470609242f32cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the DTLS context's default server PKI information.  <br /></td></tr>
<tr class="separator:gae916047df669849d71470609242f32cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7f0f3e5770a16afa5a889bec3848e6aa" id="r_ga7f0f3e5770a16afa5a889bec3848e6aa"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga7f0f3e5770a16afa5a889bec3848e6aa">coap_dtls_context_set_pki_root_cas</a> (struct <a class="el" href="structcoap__context__t.html">coap_context_t</a> *coap_context, const char *ca_file, const char *ca_dir)</td></tr>
<tr class="memdesc:ga7f0f3e5770a16afa5a889bec3848e6aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the dtls context's default Root CA information for a client or server.  <br /></td></tr>
<tr class="separator:ga7f0f3e5770a16afa5a889bec3848e6aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga950193b94632ac9d4325e51248043bae" id="r_ga950193b94632ac9d4325e51248043bae"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga950193b94632ac9d4325e51248043bae">coap_dtls_context_check_keys_enabled</a> (struct <a class="el" href="structcoap__context__t.html">coap_context_t</a> *coap_context)</td></tr>
<tr class="memdesc:ga950193b94632ac9d4325e51248043bae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether one of the coap_dtls_context_set_{psk|pki}() functions have been called.  <br /></td></tr>
<tr class="separator:ga950193b94632ac9d4325e51248043bae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac7aee70a85755e03f0dc0b5e8896ad29" id="r_gac7aee70a85755e03f0dc0b5e8896ad29"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#gac7aee70a85755e03f0dc0b5e8896ad29">coap_dtls_free_context</a> (void *dtls_context)</td></tr>
<tr class="memdesc:gac7aee70a85755e03f0dc0b5e8896ad29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Releases the storage allocated for <code>dtls_context</code>.  <br /></td></tr>
<tr class="separator:gac7aee70a85755e03f0dc0b5e8896ad29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga40ff9b2ab37e3244de024fc0daa6c930" id="r_ga40ff9b2ab37e3244de024fc0daa6c930"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga40ff9b2ab37e3244de024fc0daa6c930">coap_dtls_new_client_session</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga40ff9b2ab37e3244de024fc0daa6c930"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new client-side session.  <br /></td></tr>
<tr class="separator:ga40ff9b2ab37e3244de024fc0daa6c930"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga550971e2cd3fcdc4efd5a27e290563c2" id="r_ga550971e2cd3fcdc4efd5a27e290563c2"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga550971e2cd3fcdc4efd5a27e290563c2">coap_dtls_new_server_session</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga550971e2cd3fcdc4efd5a27e290563c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new DTLS server-side session.  <br /></td></tr>
<tr class="separator:ga550971e2cd3fcdc4efd5a27e290563c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga75ff6595aed94e16af18f531fe2c4e3f" id="r_ga75ff6595aed94e16af18f531fe2c4e3f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga75ff6595aed94e16af18f531fe2c4e3f">coap_dtls_free_session</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga75ff6595aed94e16af18f531fe2c4e3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates the DTLS session (may send an ALERT if necessary) then frees the underlying TLS library object containing security parameters for the session.  <br /></td></tr>
<tr class="separator:ga75ff6595aed94e16af18f531fe2c4e3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga428a9ec0e5d5250da2c4167789b15393" id="r_ga428a9ec0e5d5250da2c4167789b15393"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga428a9ec0e5d5250da2c4167789b15393">coap_dtls_session_update_mtu</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga428a9ec0e5d5250da2c4167789b15393"><td class="mdescLeft">&#160;</td><td class="mdescRight">Notify of a change in the CoAP session's MTU, for example after a PMTU update.  <br /></td></tr>
<tr class="separator:ga428a9ec0e5d5250da2c4167789b15393"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ef71c21d781100ddce5caf073eb9898" id="r_ga5ef71c21d781100ddce5caf073eb9898"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga5ef71c21d781100ddce5caf073eb9898">coap_dtls_send</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="memdesc:ga5ef71c21d781100ddce5caf073eb9898"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send data to a DTLS peer.  <br /></td></tr>
<tr class="separator:ga5ef71c21d781100ddce5caf073eb9898"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7954de23333db4fdc4043c35022e49f5" id="r_ga7954de23333db4fdc4043c35022e49f5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga7954de23333db4fdc4043c35022e49f5">coap_dtls_is_context_timeout</a> (void)</td></tr>
<tr class="memdesc:ga7954de23333db4fdc4043c35022e49f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if timeout is handled per CoAP session or per CoAP context.  <br /></td></tr>
<tr class="separator:ga7954de23333db4fdc4043c35022e49f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0fad2bdf0101bfc40bc66bba0366d588" id="r_ga0fad2bdf0101bfc40bc66bba0366d588"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga0fad2bdf0101bfc40bc66bba0366d588">coap_dtls_get_context_timeout</a> (void *dtls_context)</td></tr>
<tr class="memdesc:ga0fad2bdf0101bfc40bc66bba0366d588"><td class="mdescLeft">&#160;</td><td class="mdescRight">Do all pending retransmits and get next timeout.  <br /></td></tr>
<tr class="separator:ga0fad2bdf0101bfc40bc66bba0366d588"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga61a68399a9abc6a222cde8cb10046805" id="r_ga61a68399a9abc6a222cde8cb10046805"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga61a68399a9abc6a222cde8cb10046805">coap_dtls_get_timeout</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga61a68399a9abc6a222cde8cb10046805"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get next timeout for this session.  <br /></td></tr>
<tr class="separator:ga61a68399a9abc6a222cde8cb10046805"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2d7e0055b0f8a3cc6514a02fa47e3ea8" id="r_ga2d7e0055b0f8a3cc6514a02fa47e3ea8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga2d7e0055b0f8a3cc6514a02fa47e3ea8">coap_dtls_handle_timeout</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga2d7e0055b0f8a3cc6514a02fa47e3ea8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handle a DTLS timeout expiration.  <br /></td></tr>
<tr class="separator:ga2d7e0055b0f8a3cc6514a02fa47e3ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf12fde0c5f40468e42ffd06d7ad23ba8" id="r_gaf12fde0c5f40468e42ffd06d7ad23ba8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#gaf12fde0c5f40468e42ffd06d7ad23ba8">coap_dtls_receive</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="memdesc:gaf12fde0c5f40468e42ffd06d7ad23ba8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handling incoming data from a DTLS peer.  <br /></td></tr>
<tr class="separator:gaf12fde0c5f40468e42ffd06d7ad23ba8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63b38f84ef4cbc1151716284b98166bb" id="r_ga63b38f84ef4cbc1151716284b98166bb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga63b38f84ef4cbc1151716284b98166bb">coap_dtls_hello</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="memdesc:ga63b38f84ef4cbc1151716284b98166bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handling client HELLO messages from a new candiate peer.  <br /></td></tr>
<tr class="separator:ga63b38f84ef4cbc1151716284b98166bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4362af8e7373ac530fd7ea8fb868b881" id="r_ga4362af8e7373ac530fd7ea8fb868b881"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga4362af8e7373ac530fd7ea8fb868b881">coap_dtls_get_overhead</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga4362af8e7373ac530fd7ea8fb868b881"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get DTLS overhead over cleartext PDUs.  <br /></td></tr>
<tr class="separator:ga4362af8e7373ac530fd7ea8fb868b881"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga410576375ba1940a5a9c8da6d96ee95f" id="r_ga410576375ba1940a5a9c8da6d96ee95f"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga410576375ba1940a5a9c8da6d96ee95f">coap_tls_new_client_session</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, int *connected)</td></tr>
<tr class="memdesc:ga410576375ba1940a5a9c8da6d96ee95f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new TLS client-side session.  <br /></td></tr>
<tr class="separator:ga410576375ba1940a5a9c8da6d96ee95f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga549f1e9b55e423fd3e5023736ab32621" id="r_ga549f1e9b55e423fd3e5023736ab32621"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga549f1e9b55e423fd3e5023736ab32621">coap_tls_new_server_session</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, int *connected)</td></tr>
<tr class="memdesc:ga549f1e9b55e423fd3e5023736ab32621"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a TLS new server-side session.  <br /></td></tr>
<tr class="separator:ga549f1e9b55e423fd3e5023736ab32621"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c9463a35a0ec39a7154be45f6064a38" id="r_ga0c9463a35a0ec39a7154be45f6064a38"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga0c9463a35a0ec39a7154be45f6064a38">coap_tls_free_session</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session)</td></tr>
<tr class="memdesc:ga0c9463a35a0ec39a7154be45f6064a38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Terminates the TLS session (may send an ALERT if necessary) then frees the underlying TLS library object containing security parameters for the session.  <br /></td></tr>
<tr class="separator:ga0c9463a35a0ec39a7154be45f6064a38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga446d37acb840b785bc166d69b582edb7" id="r_ga446d37acb840b785bc166d69b582edb7"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga446d37acb840b785bc166d69b582edb7">coap_tls_write</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, const <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="memdesc:ga446d37acb840b785bc166d69b582edb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send data to a TLS peer, with implicit flush.  <br /></td></tr>
<tr class="separator:ga446d37acb840b785bc166d69b582edb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga924fca2b98f7bc3515e8b661297ee893" id="r_ga924fca2b98f7bc3515e8b661297ee893"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga924fca2b98f7bc3515e8b661297ee893">coap_tls_read</a> (<a class="el" href="structcoap__session__t.html">coap_session_t</a> *coap_session, <a class="el" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, size_t data_len)</td></tr>
<tr class="memdesc:ga924fca2b98f7bc3515e8b661297ee893"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read some data from a TLS peer.  <br /></td></tr>
<tr class="separator:ga924fca2b98f7bc3515e8b661297ee893"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e81d904e13ccf3af6a56ab3ebdc8a34" id="r_ga1e81d904e13ccf3af6a56ab3ebdc8a34"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dtls__internal.html#ga1e81d904e13ccf3af6a56ab3ebdc8a34">coap_dtls_startup</a> (void)</td></tr>
<tr class="memdesc:ga1e81d904e13ccf3af6a56ab3ebdc8a34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the underlying (D)TLS Library layer.  <br /></td></tr>
<tr class="separator:ga1e81d904e13ccf3af6a56ab3ebdc8a34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2ed215efb94dd270a6d55fb274f62b52" id="r_ga2ed215efb94dd270a6d55fb274f62b52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#ga2ed215efb94dd270a6d55fb274f62b52">coap_dtls_set_log_level</a> (int level)</td></tr>
<tr class="memdesc:ga2ed215efb94dd270a6d55fb274f62b52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the (D)TLS logging level to the specified <code>level</code>.  <br /></td></tr>
<tr class="separator:ga2ed215efb94dd270a6d55fb274f62b52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa57b34084a2baf0b83e7ffea5653ea25" id="r_gaa57b34084a2baf0b83e7ffea5653ea25"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__logging.html#gaa57b34084a2baf0b83e7ffea5653ea25">coap_dtls_get_log_level</a> (void)</td></tr>
<tr class="memdesc:gaa57b34084a2baf0b83e7ffea5653ea25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current (D)TLS logging.  <br /></td></tr>
<tr class="separator:gaa57b34084a2baf0b83e7ffea5653ea25"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="coap__dtls_8h.html">coap_dtls.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
